package com.juben.svr.domain.Enum;

public enum WhetherMember {
    会员("1"),
    非会员("0");

    private final String value;

    WhetherMember(String value){
        this.value = value;
    }
    public String getValue(){
        return value;
    }
    public static WhetherMember fromValue(String value){
        for(WhetherMember state : WhetherMember.values()){
            if(state.getValue().equals(value)){
                return state;

            }
        }
        return null;
    }
}
